package com.example.whitespace.service;

import com.example.whitespace.annotation.TrimWhitespace;
import com.example.whitespace.domain.User;
import com.example.whitespace.enums.ParameterType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class UserService {

    @TrimWhitespace(type = ParameterType.CLASS)
    public void trimClass(User user){
        log.info(user.getUsername());
        log.info(user.getPassword());
    }

    @TrimWhitespace(type = ParameterType.STRING)
    public void trimString(String username,String password){
        log.info(username);
        log.info(password);
    }
}
